/*
 * ParticleSprite.java
 *
 * Created on January 19, 2008, 10:56 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package wisp.game;


//JFC
import com.golden.gamedev.object.sprite.AdvanceSprite;
import java.awt.Graphics2D;
import java.awt.Dimension;
import java.awt.*;
import java.awt.event.*;
import java.awt.image.*;
import java.net.*;



// GTGE
import com.golden.gamedev.*;
import com.golden.gamedev.object.*;
import com.golden.gamedev.engine.BaseLoader;
/**
 *
 * @author Solomon See
 */
public class ParticleSprite extends AdvanceSprite {
    protected double initX,initY;
    /** Creates a new instance of ParticleSprite */
    public ParticleSprite(BufferedImage[] images, double x, double y, double speedx, double speedy) {
        super(images,x,y);
        this.initX = x;
        this.initY = y;
        setSpeed(speedx, speedy);
    } 
    public void hit(Sprite target) {
        target.setActive(false);	// "Disable" whatever this sprite hits~
        setActive(false);			// remove this sprite
    }
}
